import Router from 'koa-router'
import CommonController from '../controller/commonController'

const router = new Router({ prefix: '/common' })
const controller = new CommonController()

router.post('/login', controller.login.bind(controller))
router.post('/getDepartmentList', controller.getDepartmentList.bind(controller))
router.post('/updateUser', controller.updateUser.bind(controller))

export default router
